<%@ page language="java" import="entity.User" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<title>Insert title here</title>
</head>
<body>
<jsp:useBean id="myusers" class="entity.User"scope="application"></jsp:useBean>

 <jsp:setProperty property="id" name="myusers" value="1"/>
 <jsp:setProperty property="n" name="myusers" value="a"/>
 <jsp:setProperty property="password" name="myusers" value="123"/>
 
 <jsp:setProperty property="id" name="myusers" value="2"/>
 <jsp:setProperty property="n" name="myusers" value="b"/>
 <jsp:setProperty property="password" name="myusers" value="234"/>
 
 <jsp:setProperty property="id" name="myusers" value="3"/>
 <jsp:setProperty property="n" name="myusers" value="c"/>
 <jsp:setProperty property="password" name="myusers" value="345"/>
 
 <jsp:setProperty property="id" name="myusers" value="4"/>
 <jsp:setProperty property="n" name="myusers" value="d"/>
 <jsp:setProperty property="password" name="myusers" value="456"/>
 
 <jsp:setProperty property="id" name="myusers" value="5"/>
 <jsp:setProperty property="n" name="myusers" value="e"/>
 <jsp:setProperty property="password" name="myusers" value="567"/>
 
 <jsp:setProperty property="id" name="myusers" value="6"/>
 <jsp:setProperty property="n" name="myusers" value="f"/>
 <jsp:setProperty property="password" name="myusers" value="789"/>
 
 <jsp:setProperty property="id" name="myusers" value="7"/>
 <jsp:setProperty property="n" name="myusers" value="g"/>
 <jsp:setProperty property="password" name="myusers" value="890"/>
 
 <jsp:setProperty property="id" name="myusers" value="8"/>
 <jsp:setProperty property="n" name="myusers" value="h"/>
 <jsp:setProperty property="password" name="myusers" value="901"/>
 
 <jsp:setProperty property="id" name="myusers" value="9"/>
 <jsp:setProperty property="n" name="myusers" value="i"/>
 <jsp:setProperty property="password" name="myusers" value="012"/>
 
 <jsp:setProperty property="id" name="myusers" value="10"/>
 <jsp:setProperty property="n" name="myusers" value="j"/>
 <jsp:setProperty property="password" name="myusers" value="147"/>
 
 
<table border="1" cellspacing="0" align="center" >
		<tr>
			<th>用户ID</th>
			<th>用户名</th>
			<th>密码</th>
		</tr>
		<c:forEach var="user" items="${myusers}">${myuser} </c:forEach>
	</table>
 
 
</body>
</html>